#include "DataStructure/Result/ElementalStrain/QUADRStrainData.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure::Post;

bool SG::DataStructure::Post::operator== (const QUADRStrainData& val1, const QUADRStrainData& val2)
{
    FIELD_COMPARE (m_eId)
    FIELD_COMPARE_ARR (m_TERM, 4)
    FIELD_COMPARE_ARR (m_GRID, 5)
    FIELD_COMPARE_ARR (m_FD1, 5)
    FIELD_COMPARE_ARR (m_X1, 5)
    FIELD_COMPARE_ARR (m_Y1, 5)
    FIELD_COMPARE_ARR (m_TXY1, 5)
    FIELD_COMPARE_ARR (m_FD2, 5)
    FIELD_COMPARE_ARR (m_X2, 5)
    FIELD_COMPARE_ARR (m_Y2, 5)
    FIELD_COMPARE_ARR (m_TXY2, 5)
    FIELD_COMPARE (m_domainId)  // NOLINT(readability-simplify-boolean-expr)
    return true;
}

bool SG::DataStructure::Post::operator< (const QUADRStrainData& a, const QUADRStrainData& b)
{
    return a.m_eId < b.m_eId;
}
